<template>
  <div id="UnionPay"></div>
</template>
<script>
export default {
  data() {
    return {};
  },
  activated() {
    this.getData();
  },
  methods: {
    getData() {
      $http.get("order.merge-pay.converge-union-pay", { order_pay_id: this.$route.params.payid }, "").then(response => {
        if (response.result == 1) {
          console.log(response, "ssssssssssssss");
          const div = document.createElement("div");
          div.innerHTML = response.data.data.rc_Result;
          document.body.append(div);
          document.forms[0].submit();
        } else {
          this.$dialog
            .alert({
              message: response.msg
            })
            .then(() => {
              this.$router.push(this.fun.getUrl("member", {}));
            });
        }
      });
    }
  }
};
</script>
<style lang="scss" scoped>
</style>